Windows下安装Nexus并配置

1、下载

2、解压并启动

3、登录,用户名是:admin ,密码是:admin123

4、设置maven中央仓库为aliyun

5、添加3rdParty,并在maven-public里面添加3rdP

6、配置本地maven文件,如下所示:

  <servers>
     <server>  
            <id>3rdParty</id>  
            <username>admin</username>  
            <password>admin123</password>  
        </server> 
  </servers>
  <mirrors>
    <mirror>
      <id>maven-public</id>
      <mirrorOf>central</mirrorOf>
      <name>awbeci maven respository</name>
      <url>http://localhost:8081/repository/maven-public/</url>
    </mirror>
  </mirrors>

7、上传jar包,在jar包所在位置输入命令:

mvn deploy:deploy-file 
  -DgroupId=your-groupid 
  -DartifactId=your-artifactid
  -Dversion=your-version
  -Dpackaging=jar 
  -Dfile=yourfile
  -Durl=your-3rdparty-url
  -DrepositoryId=your-repository-id

Awbeci
3.1k 声望213 粉丝

Awbeci